﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace ForzaGT3.Areas.Admin.Models
{
    public class DriverModel
    {
        public Guid Id { get; set; }

        [Display(Name = "Country")]
        [Required(ErrorMessage = "Country Is Required")]
        public Guid CountryId { get; set; }

        [Display(Name = "Name")]
        [Required(ErrorMessage = "Name Is Required")]
        public string Name { get; set; }

        [Display(Name = "Code")]
        [Required(ErrorMessage = "Code Is Required")]
        public string Code { get; set; }

        public Guid TeamId { get; set; }

        public int Points { get; set; }

        public int Number { get; set; }

        public string CarName { get; set; }

        [AllowHtml]
        public string Remarks { get; set; }

        public string ProfileImageUrl { get; set; }
        
        public string CarImageUrl { get; set; }

        [Display(Name = "ProfileImage")]
        public HttpPostedFileBase ProfileImage { get; set; }

        [Display(Name = "CarImage")]
        public HttpPostedFileBase CarImage { get; set; }
    }
}